package ntust.tw.embedded_project_v1;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class Activity_Main extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ui_main);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}
	
	public void insertBtn(View v){
		Intent it = new Intent();
		it.setClass(v.getContext(), Activity_InsertBook.class);
		startActivityForResult(it,0);
	}
	public void queryBtn(View v){
		Intent it = new Intent();
		it.setClass(v.getContext(), Activity_QueryBook.class);
		startActivityForResult(it,0);
	}

}
